/**
 * 
 */
package com.yidu.ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.ssm.dao.FlowerTypeMapper;
import com.yidu.ssm.domain.FlowerType;
import com.yidu.ssm.service.FlowerTyperService;

/**
 * 类型的service
 * @author liandyao
 * @date 2018年7月6日
 * @version 1.0
 */
@Service
public class FlowerTypeServiceImpl implements FlowerTyperService {

	@Resource
	private FlowerTypeMapper flowerTypeMapper ;
	
	@Override
	public int deleteByPrimaryKey(Integer typeId) {
		 
		return flowerTypeMapper.deleteByPrimaryKey(typeId);
	}

	@Override
	public int insert(FlowerType record) {
		 
		return flowerTypeMapper.insert(record);
	}

	@Override
	public int insertSelective(FlowerType record) {
		return flowerTypeMapper.insertSelective(record);
	}

	@Override
	public FlowerType selectByPrimaryKey(Integer typeId) {
		
		return flowerTypeMapper.selectByPrimaryKey(typeId);
	}

	@Override
	public int updateByPrimaryKeySelective(FlowerType record) {
		
		return flowerTypeMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(FlowerType record) {
		 
		return flowerTypeMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<FlowerType> selectAll() {
		 
		return flowerTypeMapper.selectAll();
	}

}
